From: Wei Liu Date: Tue, 18 Apr 2017 14:20:03 +0000 (+0100) Subject: paths.m4: provide XENSTORED_{KVA,PORT} X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2216 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c5fc41a10de6217774b4c44ff7977be437263a1b;p=xen.git paths.m4: provide XENSTORED_{KVA,PORT} The default values are Linux device names. No users yet. Signed-off-by: Wei Liu Reviewed-by: Christian Lindig Acked-by: Ian Jackson Acked-by: Roger Pau Monné Release-acked-by: Julien Grall --- diff --git a/configure b/configure index 46fa04b6bb..c2bc3c4705 100755 --- a/configure +++ b/configure @@ -614,6 +614,8 @@ LIBEXEC_LIB LIBEXEC_BIN LIBEXEC CONFIG_LEAF_DIR +XENSTORED_PORT +XENSTORED_KVA host_os host_vendor host_cpu @@ -1873,6 +1875,18 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +case "$host_os" in +*freebsd*) XENSTORED_KVA=/dev/xen/xenstored ;; +*) XENSTORED_KVA=/proc/xen/xsd_kva ;; +esac + + +case "$host_os" in +*freebsd*) XENSTORED_PORT=/dev/xen/xenstored ;; +*) XENSTORED_PORT=/proc/xen/xsd_port ;; +esac diff --git a/docs/configure b/docs/configure index d05b9a8058..5db298987c 100755 --- a/docs/configure +++ b/docs/configure @@ -613,6 +613,8 @@ LIBEXEC_LIB LIBEXEC_BIN LIBEXEC CONFIG_LEAF_DIR +XENSTORED_PORT +XENSTORED_KVA target_alias host_alias build_alias @@ -1781,6 +1783,18 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. +case "$host_os" in +*freebsd*) XENSTORED_KVA=/dev/xen/xenstored ;; +*) XENSTORED_KVA=/proc/xen/xsd_kva ;; +esac + + +case "$host_os" in +*freebsd*) XENSTORED_PORT=/dev/xen/xenstored ;; +*) XENSTORED_PORT=/proc/xen/xsd_port ;; +esac + + test "x$prefix" = "xNONE" && prefix=$ac_default_prefix diff --git a/m4/paths.m4 b/m4/paths.m4 index 93ce89ab40..f208b7e39f 100644 --- a/m4/paths.m4 +++ b/m4/paths.m4 @@ -147,3 +147,15 @@ AC_SUBST(XEN_PAGING_DIR) XEN_DUMP_DIR=$xen_dumpdir_path AC_SUBST(XEN_DUMP_DIR) ]) + +case "$host_os" in +*freebsd*) XENSTORED_KVA=/dev/xen/xenstored ;; +*) XENSTORED_KVA=/proc/xen/xsd_kva ;; +esac +AC_SUBST(XENSTORED_KVA) + +case "$host_os" in +*freebsd*) XENSTORED_PORT=/dev/xen/xenstored ;; +*) XENSTORED_PORT=/proc/xen/xsd_port ;; +esac +AC_SUBST(XENSTORED_PORT) diff --git a/tools/configure b/tools/configure index 6ea8684944..8171a0608f 100755 --- a/tools/configure +++ b/tools/configure @@ -731,6 +731,8 @@ LIBEXEC_LIB LIBEXEC_BIN LIBEXEC CONFIG_LEAF_DIR +XENSTORED_PORT +XENSTORED_KVA FILE_OFFSET_BITS OBJEXT EXEEXT @@ -3797,6 +3799,18 @@ esac +case "$host_os" in +*freebsd*) XENSTORED_KVA=/dev/xen/xenstored ;; +*) XENSTORED_KVA=/proc/xen/xsd_kva ;; +esac + + +case "$host_os" in +*freebsd*) XENSTORED_PORT=/dev/xen/xenstored ;; +*) XENSTORED_PORT=/proc/xen/xsd_port ;; +esac + + # systemd.m4 - Macros to check for and enable systemd -*- Autoconf -*- # # Copyright (C) 2014 Luis R. Rodriguez